# from pytdx.hq import TdxHq_API
#
# api = TdxHq_API()
# api.connect()
#
# # 获取沪深300 所有股票的实时行情
# quotes = api.to_df(api.get_security_quotes([(9, i) for i in range(300000, 300300)]))
#
# # 打印行情数据
# print(quotes)
#
# api.disconnect()